package com.ruoyi.common.log.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName sys_factory
 */
@TableName(value ="sys_factory")
@Data
public class Factory implements Serializable {
    /**
     * 工厂ID
     */
    @TableId(type = IdType.AUTO)
    @ExcelProperty(value = "工厂Id")
    private Integer factoryId;

    /**
     * 工厂序号
     */
    @ExcelProperty(value = "工厂序号")
    private String factoryCode;

    /**
     * 工厂的名称
     */
    @ExcelProperty(value = "工厂名称")
    private String factoryName;

    /**
     * 工厂所在省
     */
    @ExcelProperty(value = "工厂所在省")
    private Integer xid;

    /**
     * 工厂所在市
     */
    @ExcelProperty(value = "工厂所在市")
    private Integer sid;

    /**
     * 工厂所在区
     */
    @ExcelProperty(value = "工厂所在区")
    private Integer qid;

    /**
     * 工厂详细地址
     */
    @ExcelProperty(value = "工厂详细地址")
    private String factoryAddress;

    /**
     * 工厂的排序
     */
    @ExcelProperty(value = "工厂的排序")
    private String factorySort;

    /**
     * 创建人
     */
    @ExcelProperty(value = "创建人")
    private String factoryFounder;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date factoryCreationTime;

    /**
     * 联系人
     */
    @ExcelProperty(value = "联系人")
    private String factoryPeople;

    /**
     * 联系人电话
     */
    @ExcelProperty(value = "联系人电话")
    private String factoryPhone;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String factoryRemark;

    /**
     * 农作物ID
     */
    @ExcelProperty(value = "农作物Id")
    private String cropId;

    /**
     * 图片
     */
    @ExcelIgnore
    private String avatar;

    @TableField(exist = false)
    @ExcelIgnore
    private String cropName;

    @TableField(exist = false)
    @ExcelIgnore
    private String phone;

    @TableField(exist = false)
    @ExcelIgnore
    private Integer provinceId;

    @TableField(exist = false)
    @ExcelIgnore
    private Integer cityId;

    @TableField(exist = false)
    @ExcelIgnore
    private Integer districtId;

    @TableField(exist = false)
    @ExcelIgnore
    private String provinceName;

    @TableField(exist = false)
    @ExcelIgnore
    private String cityName;

    @TableField(exist = false)
    @ExcelIgnore
    private String districtName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}